package com.salary.utils.reader;

public class DataReaderFactory {
    public static DataReader<?> createReader(String fileType) {
        return switch (fileType.toLowerCase()) {
            case "出库列表" -> new SalesDataReader();
            case "个税表" -> new TaxDataReader();
//            case "加工组" -> new SalesDataReader();
            case "考核得分" -> new AssessmentScoreReader();
            case "考勤表" -> new AttendanceDataReader();
            case "扣款表" -> new MonthlyDeductionReader();
            case "社保表" -> new SocialInsuranceReader();
            case "水电租表" -> new UtilityRentDataReader();
            case "系数表" -> new CoefficientDataReader();
            case "业务员工资资料" -> new SalesInfoReader();
            default -> throw new IllegalArgumentException("Unsupported format");
        };
    }
}
